package com.project.service;

import com.project.entity.Cv;

import java.util.List;

public interface CvService {

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 添加一个简历
     *
     * @param cv
     * @return
     */
    int addOne(Cv cv);

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 根据id删除一个简历
     *
     * @param id
     * @param URL
     * @return
     */
    boolean removeOneById(Integer id,String URL);

    /**
     * author: WheelChen
     * date: 2017/9/4
     * function: 根据id修改一个简历
     * 
     * @param cv
     * @return
     */
    int modifyOneById(Cv cv);

    /**
     * author: WheelChen
     * date: 2017/9/5
     * function:
     *
     * @param id
     * @return
     */
    Cv findOneById(Integer id);

    /**
     * author: WheelChen
     * date: 2017/9/7
     * function: 根据条件模糊查找简历
     *
     * @param cv
     * @return
     */
    List<Cv> findByCondition(Cv cv);

    /**
     * author: WheelChen
     * date: 2017/9/27
     * function: 根据学生id批量查找简历
     *
     * @param stid
     * @return
     */
    List<Cv> findBatchByStid(Integer stid);
}
